﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Config;

namespace Tauren.Business.Service.ParameterBLL
{
    /// <summary>
    /// 字典
    /// </summary>
    public interface IParameterService
    {
        /// <summary>
        /// 新增数据
        /// </summary>
        /// <returns></returns>
        IResponseMessage Add(Entity.Input.Parameters_InPut data);

        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        IResponseMessage Edit(Entity.Input.Parameters_InPut data);

        /// <summary>
        /// 主键数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Delete(long AutoID);

        /// <summary>
        /// 根据资源ID获取指定数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Get(long AutoID);

        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        IResponseMessage Pages(Entity.Global.QueryModel queryModel);

        /// <summary>
        /// 根据主键ID获取数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Config(string PageType); 

        /// <summary>
        /// 禁用数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Enable(long AutoID);
        IResponseMessage Template(string key);

        /// <summary>
        /// 根据编码获取查用参数值
        /// </summary>
        /// <param name="mainCode"></param>
        /// <returns></returns>
        IResponseMessage Tree(string mainCode);
    }
}
